import request from '@/router/axios';

// 复盘报告管理-详情
export const queryReviewReportDetailById = params => {
  return request({
    url: '/api/beetles-offer/v1/review-report/detail',
    method: 'GET',
    params
  });
}
// 复盘报告管理-分页列表
export const queryReviewReportPage = params => {
  return request({
    url: '/api/beetles-offer/v1/review-report/page',
    method: 'GET',
    params
  });
}
// 复盘报告管理-新增
export const createReviewReport = data => {
  return request({
    url: '/api/beetles-offer/v1/review-report/save',
    method: 'POST',
    data
  });
}
// 复盘报告管理-逻辑删除
export const removeReviewReportByIds = params => {
  return request({
    url: '/api/beetles-offer/v1/review-report/remove',
    method: 'POST',
    params
  });
}

// 复盘报告详情
// 复盘报告详情-投放报告按国家
export const queryReviewReportByCountry = params => {
  return request({
    url: '/api/beetles-offer/v1/review-report/ad-country',
    method: 'GET',
    params
  });
}

// 复盘报告详情-投放报告按媒体
export const queryReviewReportByPlatform = params => {
  return request({
    url: '/api/beetles-offer/v1/review-report/ad-platform',
    method: 'GET',
    params
  });
}

// 基本报告列表
export const queryReviewReportByBase = params => {
  return request({
    url: '/api/beetles-offer/v1/review-report/base',
    method: 'GET',
    params
  });
}

// 素材报告列表
export const queryReviewReportByCreative = params => {
  return request({
    url: '/api/beetles-offer/v1/review-report/creative',
    method: 'GET',
    params
  });
}

// 投放报告按日期
export const queryReviewReportAdReport = params => {
  return request({
    url: '/api/beetles-offer/v1/review-report/ad-reportdate',
    method: 'GET',
    params
  })
}

// 优化师团队报表数据
export const queryReviewOpData = params => {
  return request({
    url: '/api/beetles-offer/v1/review-report/get-op-team-report',
    method: 'GET',
    params
  });
}
// 设计师团队报表数据
export const queryReviewDesignData = params => {
  return request({
    url: '/api/beetles-offer/v1/review-report/get-design-team-report',
    method: 'GET',
    params
  });
}
// 优化师/设计师组合数据
export const queryReviewOpDesignData = params => {
  return request({
    url: '/api/beetles-offer/v1/review-report/get-op-design-report',
    method: 'GET',
    params
  });
}
// 设计师/优化师组合数据
export const queryReviewDesignOpData = params => {
  return request({
    url: '/api/beetles-offer/v1/review-report/get-design-op-report',
    method: 'GET',
    params
  });
}

// 获取投放报告的国家列表
export const queryAdCountryList = params => {
  return request({
    url: '/api/beetles-offer/v1/review-report/ad-country-list',
    method: 'GET',
    params
  });
}

// 获取投放报告的媒体列表
export const queryPlatformList = params => {
  return request({
    url: '/api/beetles-offer/v1/review-report/ad-platform-list',
    method: 'GET',
    params
  });
}

// 重试生成报告
export const retryReviewReport = params => {
  return request({
    url: '/api/beetles-offer/v1/review-report/retry',
    method: 'GET',
    params
  });
}
